package com.ruoyi.factorydata.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.*;

import java.util.Date;

/**
 * 领料单物料码详情对象 material_requisition_code_detial
 *
 * @author ruoyi
 * @date 2025-08-12
 */
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(resultMap = "com.ruoyi.factorydata.mapper.MaterialRequisitionCodeDetialMapper.MaterialRequisitionCodeDetialResult")
public class MaterialRequisitionCodeDetial extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 领料单ID
     */
    @Excel(name = "领料单ID")
    private Long requisitionId;

    /**
     * 领料单号
     */
    @Excel(name = "领料单号")
    private String requisitionNo;

    /**
     * 项目ID
     */
    @Excel(name = "项目ID")
    private Long projectId;

    /**
     * 计划ID
     */
    @Excel(name = "计划ID")
    private Long planId;

    /**
     * 工单ID
     */
    @Excel(name = "工单ID")
    private Long workOrderId;

    /**
     * 物料批次
     */
    @Excel(name = "物料批次")
    private String batchNumber;

    /**
     * 物料id
     */
    @Excel(name = "物料id")
    private Long materialId;

    /**
     * 物料编码
     */
    @Excel(name = "物料编码")
    private String materialCode;

    /**
     * 物料名称
     */
    @Excel(name = "物料名称")
    private String materialName;

    /**
     * 物料类型
     */
    @Excel(name = "物料类型")
    private String materialType;

    /**
     * 物料规格
     */
    @Excel(name = "物料规格")
    private String materialSpecification;

    /**
     * 计量单位id
     */
    @Excel(name = "计量单位id")
    private Long materialUnit;

    /**
     * 计量单位名称
     */
    @Excel(name = "计量单位名称")
    private String materialUnitName;

    /**
     * 物料分类
     */
    @Excel(name = "物料分类")
    private Long materialCategoryId;

    /**
     * 制造方式
     */
    @Excel(name = "制造方式")
    private String manufacturingMethod;
    /**
     * 入库时间
     */
    @Excel(name = "入库时间")
    private Date receiptDate;

    /**
     * 物料码
     */
    @Excel(name = "物料码")
    private String materialRequisitionCode;

    /**
     * 物料码槽号
     */
    @Excel(name = "物料码槽号")
    private String materialRequisitionCodeSlot;

    /**
     * 版本号
     */
    @Excel(name = "版本号")
    @Version
    private Long version;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic(value = "0", delval = "2")
    private String delFlag;

    /**
     * 工单编码
     */
    @Excel(name = "工单编码")
    @TableField(exist = false)
    private String workOrderCode;

    /**
     * 物料图片
     */
    @Excel(name = "物料图片")
    @TableField(exist = false)
    private String materialImages;

    /**
     * 物料分类名称
     */
    @TableField(exist = false)
    private String materialCategoryName;

    /**
     * 仓库id
     */
    @Excel(name = "仓库id")
    @TableField(exist = false)
    private Long warehouseId;

    /**
     * 仓库编码
     */
    @Excel(name = "仓库编码")
    @TableField(exist = false)
    private String warehouseCode;

    /**
     * 库位id
     */
    @Excel(name = "库位id")
    @TableField(exist = false)
    private Long warehousePositionId;

    /**
     * 库位编码
     */
    @Excel(name = "库位编码")
    @TableField(exist = false)
    private String warehousePositionCode;
    /**
     * 仓库名称
     */
    @Excel(name = "仓库名称")
    @TableField(exist = false)
    private String warehouseName;

    /**
     * 库位名称
     */
    @Excel(name = "库位名称")
    @TableField(exist = false)
    private String warehousePositionName;

}